<?php
/**
 * 描述：经营模式的常量值。
 * @final
 */
final class DAO_BusinessModel
{
    const PRODUCTION_NAME='生产加工';
    const WHOLESALE_NAME='经销批发';
    const BUSINESS_NAME='招商代理';
    const SERVICE_NAME='商业服务';
    
    const PRODUCTION_VALUE='PRODUCTION';
    const WHOLESALE_VALUE='WHOLESALE';
    const BUSINESS_VALUE='BUSINESS';
    const SERVICE_VALUE='SERVICE';


    public static function GetName($value)
    {        
        switch($value)
        {
            case self::PRODUCTION_VALUE:
                return self::PRODUCTION_NAME;
            break;
            case self::WHOLESALE_VALUE:
                return self::WHOLESALE_NAME;
            break;
            case self::BUSINESS_VALUE:
                return self::BUSINESS_NAME;
            break;
            case self::SERVICE_VALUE:
                return self::SERVICE_NAME;
            break;
            default:
                return NULL;
        }
    }

    public static function GetData()
    {
        return array
        (
            array('Value'=>self::PRODUCTION_VALUE,'Name'=>self::PRODUCTION_NAME),
            array('Value'=>self::WHOLESALE_VALUE,'Name'=>self::WHOLESALE_NAME),
            array('Value'=>self::BUSINESS_VALUE,'Name'=>self::BUSINESS_NAME),
            array('Value'=>self::SERVICE_VALUE,'Name'=>self::SERVICE_NAME)
        );
    }
}
?>